<?php
include('includes/config.php');
	include('includes/functions.php');
		if(@$_GET['id_eveniment']){
			$id_eveniment = mysql_real_escape_string($_GET['id_eveniment']);
			if(is_numeric($id_eveniment)){
					$res = mysql_query("select * from evenimente where id_cutremur = '$id_eveniment'");
					if(mysql_num_rows($res)==0){
						header("location:/evenimente.php");
					}else{
						$rowEveniment = mysql_fetch_array($res);
					}
			}else{
				header("location:/evenimente.php");
			}
		}else{
			header("location:/evenimente.php");
		}

	echo '<BASE href="http://'.$_SERVER['SERVER_NAME'].'">';
?>
<!DOCTYPE html>
<html lang="ro">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="Palangeanu Lucian, 0727 448 535">
	<title>INFP</title>
	<link href="css/style.css" rel="stylesheet">
	<link href="css/start/jquery-ui-1.10.4.custom.css" rel="stylesheet">
	

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	
  </head>
  <body onload="initialize()">
    <div class="container">
      <div class="header">
        <div id="imgLogo">
				<img src="img/logo.png" alt="INFP | Institutul National pentru Fizica Pamantului" />
			</div>
			<div id="motoLogo">
				<?php echo $_['logo']; ?>
			</div>
      </div>
      <div class="wrapper">
		<input type="hidden" id="user_ip" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>"/>
		<input type="hidden" id="eveniment" value="<?php echo @$_GET['id_eveniment']; ?>"/>
		
		<div style="width:120px; height:105px; background:red;border:3px solid #c10000;margin:0 auto;padding:8px;text-align:center;margin-top:8px;">
			<font style="color:#fff;font-size:18px;font-family:verdana;">Cutremur de</font><br/>
			<font style="font-size:54px;color:#fff;font-weight:bold;font-family:verdana;"><?php echo $rowEveniment['mag']; ?></font>
			<font style="font-size:14px;color:#fff;font-weight:bold;font-family:verdana;">grade</font>
		</div>
		<p class="lead">
			
		<b style="color:red"><?php echo $rowEveniment['regiune']; ?> </b><br/><br/><?php echo $rowEveniment['data_eveniment']; ?>
		
		</p>
		<h1> <?php echo $_['intrebare']; ?></h1>
		<div class="raspuns color1" id="1">
			<?php echo $_['raspuns-1']; ?>
		</div>
		<div class="raspuns color2" id="2">
			<?php echo $_['raspuns-2']; ?>
		</div>
		<div class="raspuns color3" id="3">
			<?php echo $_['raspuns-3']; ?>
		</div>
		<div class="raspuns color4" id="4">
			<?php echo $_['raspuns-4']; ?>
		</div>
		<div class="raspuns color5" id="5">
			<?php echo $_['raspuns-5']; ?>
		</div>
		<div class="raspuns color6" id="6">
			<?php echo $_['raspuns-6']; ?>
		</div>
		<div class="raspuns color7" id="7">
			<?php echo $_['raspuns-7']; ?>
		</div>
		<div class="raspuns color8" id="8">
			<?php echo $_['raspuns-8']; ?>
		</div> 
		<div class="raspuns color9" id="9">
		<?php echo $_['raspuns-9']; ?>
		</div>
		<div class="raspuns color10" id="10">
			<?php echo $_['raspuns-10']; ?>
		</div>
		<div class="raspuns color11" id="11">
			<?php echo $_['raspuns-11']; ?>
		</div>
		<div class="raspuns color12" id="12">
		<?php echo $_['raspuns-12']; ?>	
		</div>
		<h3> <a href="/evenimente.php">Toate Evenimentele</a></h3>
		

		<div id="comentariu" title="<?php echo $_['titlu-ferestra']; ?>">
			<p>
				<label style="font-size:14px"><?php echo $_['intrebare-ferestra']; ?></label><br/><br/>
				<textarea class="textuser"></textarea>
			</p>
			<p align="center">
				<button class="trimite"><?php echo $_['buton-ferestra']; ?></button>
			</p>
		</div>
		<div id="msg" title="<?php echo $_['titlu-ferestra-confirm']; ?>">
				<p><?php echo $_['mesaj-ferestra-confirm']; ?></p>
		</div>
     </div>

      <div class="footer">
        <p>&copy;  <?php echo $_['footer-copyright']; ?>  <? echo date("Y"); ?></p>
      </div>

    </div> 


	<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> 
	<script src="js/jquery-1.10.2.js"></script>
	<script src="js/jquery-ui-1.10.4.custom.js"></script>
	<script src="js/main.js"></script>
	
  </body>
</html>
